package com.mdd.front.controller;

import com.mdd.common.core.AjaxResult;
import com.mdd.front.service.IUserInvitationService;
import com.mdd.front.validate.commons.PageValidate;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author shenjian
 * @createTime 2023年03月04日 13:29:00
 */
@RestController
@RequestMapping("/api/invitation")
public class UserInvitationController {

    @Resource
    IUserInvitationService iUserInvitationService;

    /**
     * 邀请人员列表
     *
     * @author shenjian
     */
    @GetMapping("/list")
    public AjaxResult<?> list(@Validated PageValidate pageValidate) {
        return AjaxResult.success(iUserInvitationService.list(pageValidate));
    }
}
